var express = require('express');
const message = require("../controller/message");
const auth = require('../middleware/auth')
const router = express.Router();

// 创建消息
router.post("/createMessage", auth, message.createMessage);
// 查询消息列表
router.get("/list", auth, message.list);
// 处理消息
router.post("/readMessage", auth, message.readMessage);

module.exports = router;
